package com.czxy.demo01;


import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

import javax.annotation.Resource;

@RunWith(SpringJUnit4ClassRunner.class)

@ContextConfiguration(locations = "classpath:SpringConfig01.xml")

public class Test01 {

    @Resource
    private Dog dog;

    @Test
    public  void m01(){
        dog.eat();
    }





}
